package client;
import java.rmi.*;

 public class RunClient {

	public static void main(String args[]) {
		try {
			Monitor m = new MonitorImpl();
			Naming.rebind("client", m);			
			System.out.println("Bound to registry, waiting for other clients to start.");
			Thread.sleep(5000);
			Thread t = new Thread((MonitorImpl) m);
			t.start();
			t.join();
		} catch (Exception e) {
			System.err.println("Server Error: " + e.getMessage());
			System.exit(1);
		}
		System.exit(0);
	}
}
